﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FarmerStore.Models.LogOnModel>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    登录
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <div id="submain">
        <h2>登录</h2>
        <p>
            请输入用户名和密码 <%= Html.ActionLink("注册", "Register") %> ，如果没有账户。
        </p>
        <%= Html.ValidationSummary(true, "登录失败.请更改错误，重新再试。")%>

        <% using (Html.BeginForm()) { %>
            <div>
                <fieldset>
                    <legend>帐户信息</legend>
                
                    <div class="editor-label">
                        <%= Html.LabelFor(m => m.UserName) %>
                    </div>
                    <div class="editor-field">
                        <%= Html.TextBoxFor(m => m.UserName) %>
                        <%= Html.ValidationMessageFor(m => m.UserName) %>
                    </div>
                
                    <div class="editor-label">
                        <%= Html.LabelFor(m => m.Password) %>
                    </div>
                    <div class="editor-field">
                        <%= Html.PasswordFor(m => m.Password) %>
                        <%= Html.ValidationMessageFor(m => m.Password) %>
                    </div>
                
                    <div class="editor-label">
                        <%= Html.CheckBoxFor(m => m.RememberMe) %>
                        <%= Html.LabelFor(m => m.RememberMe) %>
                    </div>
                
                    <p>
                        <input type="submit" value="登录" />
                    </p>
                </fieldset>
            </div>
        <% } %>
   </div>
</asp:Content>
